<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="css/calendar.css" type="text/css" rel="stylesheet"
	media="all" />
<script type="text/javascript">
	var inverse = ${Config.inverse};
</script>
<script type="text/javascript" src="script/ThConfig.js"></script>
</head>
<body>
<div align="center">
<table cellspacing="0" cellpadding="0" border="0">
	<tbody>
		<tr>
			<td valign="top" style="padding: 0px; width: 100%;">
			<div class="box_region left">
			<div class="box">
			<div class="top">
			<div class="left">
			<div class="right">
			<div class="middle">
			<div class="box_title"><span class="boxtitle">Update:
			${Config.name}</span></div>
			</div>
			</div>
			</div>
			</div>
			<div class="content" align="left">
			<form name="thConfig"
				action="/dbdashboard/thConfig.do?method=saveThParam" method="post">
			<input type="hidden" name="thParamId" value="${Config.id}" /> <input
				type="hidden" name="name" value="${Config.name}" />
			<table cellspacing="2" cellpadding="2" border="0" width="100%">
				<tbody>
					<tr>
						<td colspan="5"><span class="mandatory">* indicates
						mandatory field</span></td>
					</tr>
					<tr>
						<td nowrap><span class="formlabel">Parameter Name:</span></td>
						<td><img width="5" src="images/t.gif" alt="" /></td>
						<td colspan="3">${Config.name}</td>
					</tr>
					<tr>
						<td nowrap><span class="formlabel">Metric Name:</span></td>
						<td><img width="5" src="images/t.gif" alt="" /></td>
						<td colspan="3">${Config.metricName}</td>
					</tr>
					<c:if test="${!Config.inverse}">
						<tr>
							<td nowrap><span class="formlabel">Healthy:</span> <span
								class="required_icon" title="Required">*</span></td>
							<td><img width="5" src="images/t.gif" alt="" /></td>
							<td><input type="text" name="minLevel" size="10"
								maxlength="10" value="${Config.minLevel}" /></td>
							<td>&nbsp;to&nbsp;</td>
							<td><input type="text" name="warningLevel" size="10"
								maxlength="10" value="${Config.warningLevel}"
								onkeyup="copyWarningLevel()" /></td>
						</tr>
						<tr>
							<td nowrap><span class="formlabel">Not So Healthy:</span> <span
								class="required_icon" title="Required">*</span></td>
							<td><img width="5" src="images/t.gif" alt="" /></td>
							<td><input type="text" name="fixedWarningLevel" size="10"
								maxlength="10" value="${Config.warningLevel}"
								readonly="readonly" class="noborder" /></td>
							<td>&nbsp;to&nbsp;</td>
							<td><input type="text" name="criticalLevel" size="10"
								maxlength="10" value="${Config.criticalLevel}"
								onkeyup="copyCriticalLevel()"/></td>
						</tr>
						<tr>
							<td nowrap><span class="formlabel">Need DBA
							Attention:</span> <span class="required_icon" title="Required">*</span></td>
							<td><img width="5" src="images/t.gif" alt="" /></td>
							<td><input type="text" name="fixedCriticalLevel" size="10"
								maxlength="10" value="${Config.criticalLevel}"
								readonly="readonly" class="noborder" /></td>
							<td>&nbsp;to&nbsp;</td>
							<td><input type="text" name="maxLevel" size="10"
								maxlength="10" value="${Config.maxLevel}" /></td>
						</tr>
					</c:if>
					<c:if test="${Config.inverse}">
						<tr>
							<td nowrap><span class="formlabel">Healthy:</span> <span
								class="required_icon" title="Required">*</span></td>
							<td><img width="5" src="images/t.gif" alt="" /></td>
							<td><input type="text" name="maxLevel" size="10"
								maxlength="10" value="${Config.maxLevel}"/></td>
							<td>&nbsp;to&nbsp;</td>
							<td><input type="text" name="criticalLevel" size="10"
								maxlength="10" value="${Config.criticalLevel}"
								onkeyup="copyCriticalLevel()" /></td>
						</tr>
						<tr>
							<td nowrap><span class="formlabel">Not So Healthy:</span> <span
								class="required_icon" title="Required">*</span></td>
							<td><img width="5" src="images/t.gif" alt="" /></td>
							<td><input type="text" name="fixedCriticalLevel" size="10"
								maxlength="10" value="${Config.criticalLevel}"
								readonly="readonly" class="noborder" /></td>
							<td>&nbsp;to&nbsp;</td>
							<td><input type="text" name="warningLevel" size="10"
								maxlength="10" value="${Config.warningLevel}"
								onkeyup="copyWarningLevel()" /></td>
						</tr>
						<tr>
							<td nowrap><span class="formlabel">Need DBA
							Attention:</span> <span class="required_icon" title="Required">*</span></td>
							<td><img width="5" src="images/t.gif" alt="" /></td>
							<td><input type="text" name="fixedWarningLevel" size="10"
								maxlength="10" value="${Config.warningLevel}"
								readonly="readonly" class="noborder" /></td>
							<td>&nbsp;to&nbsp;</td>
							<td><input type="text" name="minLevel" size="10"
								maxlength="10" value="${Config.minLevel}" /></td>
						</tr>
					</c:if>
					<tr>
						<td colspan="5">
						<table cellspacing="0" cellpadding="0" border="0"
							class="form_submit" summary="">
							<tbody>
								<tr>
									<td>
									<button class="buttontext" onclick="parent.history.back()">Cancel</button>
									<button class="buttontext" onclick="validate()">Update</button>
									</td>
								</tr>
							</tbody>
						</table>
						</td>
					</tr>
				</tbody>
			</table>
			</form>
			</div>
			<div class="bottom">
			<div class="left">
			<div class="right">
			<div class="middle"></div>
			</div>
			</div>
			</div>
			</div>
			</div>
			</td>
		</tr>
	</tbody>
</table>
</div>
</body>
</html>